<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html lang="true">
<head>
	<html:base />

	<title>我的购物车_佩华花艺学校</title>

	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link href="<%=request.getContextPath()%>/css/black/style.css"
		rel="stylesheet" type="text/css" />
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/js/base.js"></script>
	<script type="text/javascript">
		function validate(){
			return true;
		}
	</script>
</head>

<body>
	<div id="content">
		<jsp:include page="/front/layout/header.jsp"></jsp:include>
		<jsp:include page="/front/layout/nav.jsp"></jsp:include>
		<div id="main">
			<table id="tb_car">
				<tr class="tb_title">
					<td></td>
					<td>
						商品名称
					</td>
					<td>
						单价
					</td>
					<td>
						数量
					</td>
					<td>
						小计(元)
					</td>
					<td></td>
				</tr>
				<% double sum = 0.0; %>
				<logic:iterate id="iter" name="cartFormList" type="com.bupt.liutong.admin.shop.form.CartForm">
				<tr class="tb_main">
					<td class="w68">
						<img src="images/goods/004.jpg" />
					</td>
					<td>
						<a href="<%=request.getContextPath()%>/"><span>${iter.prodName}</span>
						</a>
					</td>
					<td>
						${iter.prodPrice}
					</td>
					<td>
						<a href="#"><img src="<%=request.getContextPath()%>/css/black/images/-.gif" />
						</a>
						<input name="" type="text" value="${iter.prodNum}" class="text_style"
							style="width: 50px;" />
						<a href="#"><img src="<%=request.getContextPath()%>/css/black/images/+.gif" />
						</a>
					</td>
					<td>
						${iter.prodPrice*iter.prodNum}
						<%sum+=iter.getProdPrice()*iter.getProdNum(); %>
					</td>
					<td>
						<a href="#">删除</a>
					</td>
				</tr>
				</logic:iterate>
			</table>
			<div class="total right">
				商品总价：
				<span class="colororange"><%=sum%></span>元
				<br />
				<input name="" type="button" value="再逛逛"
					class="button_style btn_back"
					style="width: 70px; margin-left: 10px;" />
				<input name="" type="button" value="确认购买"
					onclick="location.href='<%=request.getContextPath()%>/front/shop/cart.do?method=viewCourseOrder';"
					class="button_style btn_sure"
					style="width: 80px; margin-left: 10px;" />
			</div>
		</div>
		<jsp:include page="/front/layout/contact.jsp"></jsp:include>
	</div>
</body>
</html:html>
